//
//  JMNormalCollectionViewCell.m
//  PhotoLock
//
//  Created by 赵俊明 on 2017/7/15.
//  Copyright © 2017年 赵俊明. All rights reserved.
//

#import "JMNormalCollectionViewCell.h"
#import "JMAlbumModel.h"


@interface  JMNormalCollectionViewCell ()
@property (nonatomic, weak) UILabel * label;
@end

@implementation JMNormalCollectionViewCell

- (instancetype)initWithFrame:(CGRect)frame
{
    if ([super initWithFrame:frame]) {
        
        self.backgroundColor = [UIColor whiteColor];
        
        UILabel *label = [[UILabel alloc] init];
        label.textAlignment = NSTextAlignmentCenter;
        [self addSubview:label];
        self.label = label;
    
    }
    
    return self;
}

- (void)setModel:(JMAlbumModel *)model
{
    _model = model;
    _label.text = model.leftImage;
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    _label.frame = self.bounds;
}

@end
